package com.caishi.lkx.course.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caishi.lkx.course.model.VideoInfoModel;
import com.caishi.lkx.course.model.VideoRecordsModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface VideoRecordsMapper extends BaseMapper<VideoRecordsModel> {
    public void batchUpdateTime(@Param("params") List<VideoRecordsModel> params);

    void batchInsert(@Param("data") List<VideoRecordsModel> data);

    Boolean deleteBatchIds1(@Param("ids") List<Integer> ids,@Param("userId") String userId);

    Page<VideoInfoModel> getVideoRecords(Page<VideoRecordsModel> page, @Param("params") Map<String, Object> params);
}
